package com.wondertek.poms.core.service;

import com.wondertek.poms.common.service.IService;
import com.wondertek.poms.dao.po.ProductGroup;
import com.wondertek.poms.dao.pojo.ProductGroupPojo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IProductGroupService extends IService<ProductGroup,Long> {

    Page<ProductGroupPojo> findAll(ProductGroupPojo productGroup, int page, int rows, String sord, String sidx);

    ProductGroup saveProductGroup(ProductGroupPojo productGroup);

    ProductGroupPojo getById(Long id);

    List<Long> getAllProductGroupId(String vo);

    List<String> getAllProductGroupName(String vo);

    void deleteGroup(String id);

    Map<String, Object> getProductGroupMap(Long groupId);

    ProductGroup findByGroupId(Long groupId);


}
